<template>
  <h1>{{ mseset }}</h1>
  <input type="text" v-model="mseset" />
</template>

<script>
import myDevVue from "./components/myDev.vue";
export default {
  name: "App",
  myDevVue,
  data() {
    return {
      mseset: "hello world",
    };
  },
  watch:{
    mseset:function(newvalue,oldvalue){
      console.log('newvalue:',newvalue)
      console.log('oldvalue:',oldvalue)
      if(newvalue.length<10){
        alert("太短了")
      }


    }
  }
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
  width: 200px;
  height: 200px;
  display: block;
}
</style>
